package browsermanager
import grails.converters.XML

class BrowserFileController {
	def fileUpdaterService
	static transactional = true
	
	def index = { render new File("web-app/index.html") }
	
	def updateFacts= {
		fileUpdaterService.update()
	}
	
	def list= {
		render nextgen.WebService.list() as XML
	}
	def display= {
		def ws= nextgen.WebService.get(params.id)
		if (ws) { render(template:"serviceInfo", model:[ws:ws])	}
		else { render "Web Service info not found" }
	}
}
